package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 订单详情对象 tb_order_details
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
public class TbOrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情id */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 菜品数量 */
    @Excel(name = "菜品数量")
    private Long menuId;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String menuName;

    /** 菜品购买数量 */
    @Excel(name = "菜品购买数量")
    private Long menuQuantityNum;

    /** 菜品单价 */
    @Excel(name = "菜品单价")
    private BigDecimal menuPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setMenuId(Long menuId) 
    {
        this.menuId = menuId;
    }

    public Long getMenuId() 
    {
        return menuId;
    }
    public void setMenuName(String menuName) 
    {
        this.menuName = menuName;
    }

    public String getMenuName() 
    {
        return menuName;
    }
    public void setMenuQuantityNum(Long menuQuantityNum) 
    {
        this.menuQuantityNum = menuQuantityNum;
    }

    public Long getMenuQuantityNum() 
    {
        return menuQuantityNum;
    }
    public void setMenuPrice(BigDecimal menuPrice)
    {
        this.menuPrice = menuPrice;
    }

    public BigDecimal getMenuPrice()
    {
        return menuPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("menuId", getMenuId())
            .append("menuName", getMenuName())
            .append("menuQuantityNum", getMenuQuantityNum())
            .append("menuPrice", getMenuPrice())
            .toString();
    }
}
